import request from "@/router/axios";

export const getGoodsDetail = goodsId => {
	return request({
		url: "/base/goodsDetail/goodsDetail",
		method: "post",
		meta: {
			isSerialize: true,
		},
		data: {
			goodsId
		}
	});
};
export const auditUpSave = (id, goodsStatus, auditDesc) => {
	return request({
		url: "/base/goodsManage/auditOrDownSave",
		method: "post",
		meta: {
			isSerialize: true,
		},
		data: {
			id,
			goodsStatus,
			auditDesc
		}
	});
};
export const allAuditOrDownSave = (data) => {
	return request({
		url: "/base/goodsManage/allAuditOrDownSave",
		method: "post",
		meta: {
			isSerialize: true,
		},
		data:data
	});
};
export const ReviewedGoodsNum = () => {
	return request({
		url: "base/goodsManage/reviewedGoodsNum",
		method: "post",
	});
};

export const listDictsByCode = () => {
	return request({
		url: "/api/sellerDict/listDictsByCode",
		method: "post",
		meta: {
			isSerialize: true,
		},
		data:{
			dictTypeCode:'GOODS_SERVE_GUARANTEE'
		}
	});
};
export const getStoreWillCallId = (data) => {
	return request({
		url: "/base/storeWillCall/getStoreWillCallId",
		method: "post",
		meta: {
			isSerialize: true,
		},
		data:data
	});
};
//获取商品配送范围
export const getTransAreaName = (areaId) => {
	return request({
		url: '/base/area/getParentAndGrandInfoById',
		method: 'post',
		meta: {
			isSerialize: true,
		},
		data: {
			areaId
		}
	})
}
